﻿using Prism.Mvvm;
using Prism.Regions;
using DH.Core.Mvvm;
using DH.Core.Interfaces;
using Prism.Commands;
using Business.Views;
using DH.Share.Comm.Commands;

namespace RibbonMenu.ViewModels
{
    public class RibbonWinViewModel : BindableBase
    {
        private readonly IRegionManager regionManager;
        public RibbonWinViewModel(IRegionManager regionManager)
        {
            this.regionManager = regionManager;
            OpenCommand = new DelegateCommand(OpenBusiness);

        }
        public DelegateCommand OpenCommand { get; private set; }
        //void NavgateMainpage()
        //{
        //    regionManager.Regions["ContentRegion"].RemoveAll();
        //    regionManager.Regions["ContentRegion"].Add(new BusinessView(), "viewa");
        //}
        void OpenBusiness()
        {
            MenuCommand.OpenBusinessView(this.regionManager);
        }
    }
}
